package oop1;

/**
 * @author oldliu
 * @since 1.0
 */
public class Fuzhi {
    public static void main(String[] args) {
        int a=14;
        int b=a;
        a=23;
        System.out.println("b="+b);
        Dog d=new Dog();
        //给对象d的属性 赋值
        d.type="金毛";
        d.weight=4.6;
        d.name="贾斯汀";
        d.age=3;
        d.color="黄色";

        Dog d2=d;//!!!
        d.age=19;
        System.out.println(">>>>>>>>>>>>>>>>>");
        System.out.println("xiaogu:D2的信息如下：");
        d2.showSelf();
        System.out.println("小狗D的信息如下:");
        d.showSelf();
        System.out.println("?????????");
        d=null;
        d2.showSelf();
        d2=null;
    }
}
